package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.vo.DishVO;
import com.sky.vo.PageResult;

import java.util.List;

/**
 * PROJECT_NAME: sky-take-out
 * NAME: DishService
 *
 * @AUTHOR: zhang
 * DATE: 2023/11/23
 * DESCRIPTION :
 */
public interface DishService {
    PageResult getPage(DishPageQueryDTO dto);

    void insertDish(DishDTO dishDTO);

    DishVO selectDishById(Long id);

    void updateDish(DishDTO dishDTO);

    void deleteBatchDish(List<Long> ids);

    List<Dish> selectDishByCategoryId(Long categoryId);

    List<DishVO> selectDishAndFlavoByCategoryId(Long categoryId);

    void updateDishStatus(Integer status,Long id);
}
